/*
 * Copyright (c) 2023 Cshoo Org. All Rights Reserved.
 */

package org.tattoo.workflow.domain.repository;

import org.springframework.data.repository.CrudRepository;
import org.tattoo.workflow.domain.po.ProcessRecord;

import java.util.List;

/**
 * @author 杨翼
 * @since 1.0
 */
public interface IProcessRecordRepository extends CrudRepository<ProcessRecord, Long> {

    /**
     * 根据订单id查询流程记录
     *
     * @param procurementOrderId 采购订单id
     * @return 流程记录
     */
    List<ProcessRecord> queryProcessRecordByProcurementOrderIdOrderByCreatedDate(Long procurementOrderId);

}
